package com.hl.sfzy.service.impl;

import com.hl.sfzy.entity.ConsultantCertificates;
import com.hl.sfzy.mapper.ConsultantCertificatesMapper;
import com.hl.sfzy.service.ConsultantCertificatesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ConsultantCertificatesServiceImpl implements ConsultantCertificatesService {
    @Autowired
    private ConsultantCertificatesMapper consultantCertificatesMapper;

    @Override
    public List<ConsultantCertificates> selectAll() {
        return consultantCertificatesMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return consultantCertificatesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ConsultantCertificates record) {
        return consultantCertificatesMapper.insert(record);
    }

    @Override
    public int insertSelective(ConsultantCertificates record) {
        return consultantCertificatesMapper.insertSelective(record);
    }

    @Override
    public ConsultantCertificates selectById(Long id) {
        return consultantCertificatesMapper.selectById(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ConsultantCertificates record) {
        return consultantCertificatesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ConsultantCertificates record) {
        return consultantCertificatesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ConsultantCertificates> findByConsultantId(Long id) {
        return consultantCertificatesMapper.selectByConsultantId(id);
    }
}
